import 'package:flutter/material.dart';

class Tag extends StatelessWidget {
  final String title;
  final Image icon;
  final Color bgColor;
  final Color color;

  const Tag(
      {Key key, @required this.title, this.icon, this.bgColor, this.color})
      : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.symmetric(horizontal: 4),
      padding: EdgeInsets.symmetric(horizontal: 3, vertical: 2),
      color: Colors.black12,
      child: SizedBox(
        // width: 50,
        height: 20,
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              '$title',
              textAlign: TextAlign.center,
            )
          ],
        ),
      ),
    );
  }
}
